#include <iostream.h>
int main()
{
	int sum=0;
	int i=50;
/*	
//	use for
	for(i=50;i<=100;i++)
	{
		sum+=i;
	}
*/
//	use while
	while(i<=100)
	{
		sum+=i;
		i++;
	}
	cout<<"Sum of 50 to 100 is "<<sum<<endl;
	return 0;
}